package com.modules.utils;

/**
 * Created by lewis on 2017/8/26.
 */
public class MessageConstant {
        //Controller用到的常量
        //消息
        public static final String	MSG					= "msg";
        //对象，返回到页面json
        public static final String	OBJECT				= "object";
        //成功标记
        public static final String	SUCCESS				= "success";

        //失败标记
        public static final String	FAILURE				= "failure";

        //保存失败
        public static final String	FAILURE_SAVE		= "保存失败。";

        //删除失败
        public static final String	FAILURE_DELETE		= "删除失败。";

        //保存成功
        public static final String	SUCCESS_SAVE		= "保存成功。";
        //删除成功
        public static final String	SUCCESS_DELETE		= "删除成功。";
        //导入成功
        public static final String	SUCCESS_IMPORT		= "导入成功。";
        //导出成功
        public static final String	SUCCESS_EXPORT		= "导出成功。";
        //提交成功
        public static final String	SUCCESS_SUBMIT		= "提交成功。";
        //操作成功
        public static final String	SUCCESS_OPERATION	= "操作成功。";
        //操作失败
        public static final String	FAILURE_OPERATION   = "操作失败。";

        //成功标记
        public static final int	SUCCESS_0	            = 0;

        //失败标记1
        public static final int	FAILURE_1	            = 1;

        //失败标记2
        public static final int	FAILURE_2	            = 2;

        //系统错误
        public static final String	FAILURE_SYSTEM		= "系统错误，请联系系统管理员。";

        //失败标记1
        public static final String	FAILURE_SAVE_1	    = "流程已梳理，不允许新增。";

        //失败标记1
        public static final String	FAILURE_SAVE_2	    = "流程已梳理，不允许修改。";

        //整改计划截止时间晚于整改项预计完成时间
        public static final String	PLANENDTIME_EXCEPTION = "整改计划截止时间晚于整改项预计完成时间,请重新修改计划的截止时间,并保存。";

        //制定计划提交的时候，如果计划下有的整改项没有制定相应的措施，发出提示消息
        public static final String CLAUSENOITEM           ="该计划下所选的整改项存在没有制定相应措施，请制定措施后提交.";

        //计划提交的时候，如果该计划下面一个整改项都没有的提示信息
        public static final String PLANHAVENOITEM        ="提交的计划下没有相应的措施,请选择整改项制定措施!";

        //过时的数据编辑，在编辑过程中别人已经编辑并保存过了
        public static final String	FAILURE_OUT_OF_DATE	    = "在你编辑本条数据的过程中，本条数据已被别人编辑并保存过了。";

        public static final String	OUT_OF_DATE		= "OUT_OF_DATE";
}
